import request from "@/utils/request";
import {serverIp} from "../../public/config.js";
const API_BASE_URL = `http://${serverIp}:8081/jdyfy`;

/**
 * 小类型API请求
 */

// 获取通知分页
export const getNotificationsPage = (pageNum, pageSize, departmentName,message,isRead) =>{
    return request.get(`${API_BASE_URL}/notificationsPage`,{
        params: {
            pageNum,
            pageSize,
            departmentName,
            message,
            isRead
        }
    }).then(res => {
        return res.data;
    })
}